package com.wlcorp.forcazamis.domain.sample;

import java.sql.Date;
import java.util.Set;

import com.wlcorp.forcazamis.domain.system.Staff;
import com.wlcorp.forcazamis.sys.BaseBean;
import com.wlcorp.forcazamis.sys.util.AppConstant;

public class Sample extends BaseBean {
	private static final long serialVersionUID = -6570964329467415578L;
	private Long sampleId;
	private String sampleCode;
	private String tmpSampleCode;
	private Long serialCode;
	private String factoryCode;
	private String sourceCode;
	private Integer sourceType;
	private String source1;
	private String source2;
	private String source3;
	private Staff createdBy;
	private Long createdById;
	private Date createdDate;
	private Staff modifiedBy;
	private Long modifiedById;
	private Date modifiedDate;
	private String imagePath;
	private Set<?> subSampleSet;
	private Set<?> sampleImageSet;
	private Integer flag;
	private boolean deleteFlag;

	public boolean isDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(boolean deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	public Staff getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(Staff createdBy) {
		this.createdBy = createdBy;
	}

	public Long getCreatedById() {
		return createdById;
	}

	public void setCreatedById(Long createdById) {
		this.createdById = createdById;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public String getFactoryCode() {
		return factoryCode;
	}

	public void setFactoryCode(String factoryCode) {
		this.factoryCode = factoryCode;
	}

	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

	public Staff getModifiedBy() {
		return modifiedBy;
	}

	public void setModifiedBy(Staff modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	public Long getModifiedById() {
		return modifiedById;
	}

	public void setModifiedById(Long modifiedById) {
		this.modifiedById = modifiedById;
	}

	public Date getModifiedDate() {
		return modifiedDate;
	}

	public void setModifiedDate(Date modifiedDate) {
		this.modifiedDate = modifiedDate;
	}

	public String getSampleCode() {
		return sampleCode;
	}

	public void setSampleCode(String sampleCode) {
		this.sampleCode = sampleCode;
	}

	public Long getSampleId() {
		return sampleId;
	}

	public void setSampleId(Long sampleId) {
		this.sampleId = sampleId;
	}

	public Long getSerialCode() {
		return serialCode;
	}

	public void setSerialCode(Long serialCode) {
		this.serialCode = serialCode;
	}

	public String getSource1() {
		return source1;
	}

	public void setSource1(String source1) {
		this.source1 = source1;
	}

	public String getSource2() {
		return source2;
	}

	public void setSource2(String source2) {
		this.source2 = source2;
	}

	public String getSource3() {
		return source3;
	}

	public void setSource3(String source3) {
		this.source3 = source3;
	}

	public Set<?> getSampleImageSet() {
		return sampleImageSet;
	}

	public void setSampleImageSet(Set<?> sampleImageSet) {
		this.sampleImageSet = sampleImageSet;
	}

	public Set<?> getSubSampleSet() {
		return subSampleSet;
	}

	public void setSubSampleSet(Set<?> subSampleSet) {
		this.subSampleSet = subSampleSet;
	}

	public Integer getSourceType() {
		return sourceType;
	}

	public void setSourceType(Integer simpleSourceType) {
		this.sourceType = simpleSourceType;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public String getSourceCode() {
		return sourceCode;
	}

	public void setSourceCode(String sourceCode) {
		this.sourceCode = sourceCode;
	}

	public String getTmpSampleCode() {
		return tmpSampleCode;
	}

	public void setTmpSampleCode(String tmpSampleCode) {
		this.tmpSampleCode = tmpSampleCode;
	}

	public String getSourceTypeName() {
		String sourceTypeName = "";
		if (AppConstant.SOURCE_TYPE_DEVELOPERCS == sourceType) {
			sourceTypeName = "研发改样";
		} else if (AppConstant.SOURCE_DEVELOPERMD == sourceType) {
			sourceTypeName = "研发模仿";
		} else if (AppConstant.SOURCE_DEVELOPEROR == sourceType) {
			sourceTypeName = "研发原创";
		} else if (AppConstant.SOURCE_BUYS == sourceType) {
			sourceTypeName = "直接买样";
		} else if (AppConstant.SOURCE_CUSTOMERS == sourceType) {
			sourceTypeName = "客户来样";
		} else if (AppConstant.SOURCE_FACTORYS == sourceType) {
			sourceTypeName = "工厂来样";
		} else if (AppConstant.SOURCE_OUTS == sourceType) {
			sourceTypeName = "出货样";
		} else if (AppConstant.SOURCE_CHANGES == sourceType) {
			sourceTypeName = "改款";
		}
		return sourceTypeName;
	}
}
